PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Monster / xtramartin (55).milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=2 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.527 |
| 27 | fWaveSmoothing=0.450 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.000 |
| 30 | fModWaveAlphaEnd=1.320 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.000 |
| 46 | wave_b=0.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.015 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=1.000 |
| 53 | ob_a=0.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=0.300 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=282 |
| 77 | wavecode_0_sep=20 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=7.85800 |
| 83 | wavecode_0_smoothing=0.10000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.000 |
| 86 | wavecode_0_b=0.000 |
| 87 | wavecode_0_a=0.600 |
| 88 | wave_0_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 89 | wave_0_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 90 | wave_0_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 91 | wave_0_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 92 | wave_0_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 93 | wave_0_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 94 | wave_0_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 95 | wave_0_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 96 | wave_0_init9= |
| 97 | wave_0_per_frame1=t2 = t2 + bass_att; |
| 98 | wave_0_per_point1=y = .5+.2*sin(time); x = 0.5; |
| 99 | wavecode_1_enabled=0 |
| 100 | wavecode_1_samples=512 |
| 101 | wavecode_1_sep=0 |
| 102 | wavecode_1_bSpectrum=0 |
| 103 | wavecode_1_bUseDots=1 |
| 104 | wavecode_1_bDrawThick=1 |
| 105 | wavecode_1_bAdditive=0 |
| 106 | wavecode_1_scaling=0.89152 |
| 107 | wavecode_1_smoothing=0.82000 |
| 108 | wavecode_1_r=1.000 |
| 109 | wavecode_1_g=1.000 |
| 110 | wavecode_1_b=1.000 |
| 111 | wavecode_1_a=0.100 |
| 112 | wave_1_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 113 | wave_1_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 114 | wave_1_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 115 | wave_1_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 116 | wave_1_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 117 | wave_1_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 118 | wave_1_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 119 | wave_1_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 120 | wave_1_init9= |
| 121 | wave_1_per_frame1=tm = time*.1; |
| 122 | wave_1_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7); |
| 123 | wave_1_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8); |
| 124 | wave_1_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1); |
| 125 | wave_1_per_frame5= |
| 126 | wave_1_per_frame6=tic = min(time - tin,1); |
| 127 | wave_1_per_frame7=tin = time; |
| 128 | wave_1_per_frame8= |
| 129 | wave_1_per_frame9=tva = (tic*q1*.5); |
| 130 | wave_1_per_frame10=tvb = (tic*q2*.5); |
| 131 | wave_1_per_frame11=tvc = (tic*q3*.5); |
| 132 | wave_1_per_frame12= |
| 133 | wave_1_per_frame13=q1 = tva; |
| 134 | wave_1_per_frame14=q2 = tvb; |
| 135 | wave_1_per_frame15=q3 = tvc; |
| 136 | wave_1_per_frame16= |
| 137 | wave_1_per_frame17=sz = .5; |
| 138 | wave_1_per_frame18=len = q4; |
| 139 | wave_1_per_frame19=t4 = len; |
| 140 | wave_1_per_point1=xi = rand(100)/100; |
| 141 | wave_1_per_point2=yi = rand(100)/100; |
| 142 | wave_1_per_point3= |
| 143 | wave_1_per_point4=x = xi; y = yi; |
| 144 | wave_1_per_point5= |
| 145 | wave_1_per_point6=a = q21/15; |
| 146 | wavecode_2_enabled=0 |
| 147 | wavecode_2_samples=512 |
| 148 | wavecode_2_sep=0 |
| 149 | wavecode_2_bSpectrum=0 |
| 150 | wavecode_2_bUseDots=0 |
| 151 | wavecode_2_bDrawThick=0 |
| 152 | wavecode_2_bAdditive=0 |
| 153 | wavecode_2_scaling=0.89152 |
| 154 | wavecode_2_smoothing=0.00000 |
| 155 | wavecode_2_r=0.500 |
| 156 | wavecode_2_g=0.000 |
| 157 | wavecode_2_b=0.500 |
| 158 | wavecode_2_a=1.000 |
| 159 | wave_2_init1=t1 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 160 | wave_2_init2=t2 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 161 | wave_2_init3=t3 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 162 | wave_2_init4=t4 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 163 | wave_2_init5=t5 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 164 | wave_2_init6=t6 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 165 | wave_2_init7=t7 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 166 | wave_2_init8=t8 = 1 + (rand(101)*.01 - rand(101)*.01)*.3; |
| 167 | wave_2_init9= |
| 168 | wave_2_per_frame1=tm = time*.1; |
| 169 | wave_2_per_frame2=t1 = t1*sin(tm*t4) + (1-t1)*sin(tm*t7); |
| 170 | wave_2_per_frame3=t2 = t2*sin(tm*t5) + (1-t2)*sin(tm*t8); |
| 171 | wave_2_per_frame4=t3 = t3*sin(tm*t6) + (1-t3)*sin(tm*1); |
| 172 | wave_2_per_frame5= |
| 173 | wave_2_per_frame6=tic = min(time - tin,1); |
| 174 | wave_2_per_frame7=tin = time; |
| 175 | wave_2_per_frame8= |
| 176 | wave_2_per_frame9=tva = (tic*q1*.5); |
| 177 | wave_2_per_frame10=tvb = (tic*q2*.5); |
| 178 | wave_2_per_frame11=tvc = (tic*q3*.5); |
| 179 | wave_2_per_frame12= |
| 180 | wave_2_per_frame13=q1 = tva; |
| 181 | wave_2_per_frame14=q2 = tvb; |
| 182 | wave_2_per_frame15=q3 = tvc; |
| 183 | wave_2_per_frame16= |
| 184 | wave_2_per_frame17=sz = .5; |
| 185 | wave_2_per_frame18=len = 1; |
| 186 | wave_2_per_frame19=t4 = len; |
| 187 | wave_2_per_point1=x = .5+abs(sample-.5)*.1; y = .5 + .1*sample+value1*.1; |
| 188 | wave_2_per_point2= |
| 189 | wave_2_per_point3=x = .6 + .02*cos(sample*6.3)*(1+value1*4); |
| 190 | wave_2_per_point4=y = .58 + .02*sin(sample*6.3)*(1+value1*4); |
| 191 | wavecode_3_enabled=0 |
| 192 | wavecode_3_samples=512 |
| 193 | wavecode_3_sep=0 |
| 194 | wavecode_3_bSpectrum=1 |
| 195 | wavecode_3_bUseDots=1 |
| 196 | wavecode_3_bDrawThick=0 |
| 197 | wavecode_3_bAdditive=0 |
| 198 | wavecode_3_scaling=1.00000 |
| 199 | wavecode_3_smoothing=0.50000 |
| 200 | wavecode_3_r=1.000 |
| 201 | wavecode_3_g=1.000 |
| 202 | wavecode_3_b=1.000 |
| 203 | wavecode_3_a=1.000 |
| 204 | shapecode_0_enabled=1 |
| 205 | shapecode_0_sides=32 |
| 206 | shapecode_0_additive=1 |
| 207 | shapecode_0_thickOutline=0 |
| 208 | shapecode_0_textured=1 |
| 209 | shapecode_0_num_inst=1 |
| 210 | shapecode_0_x=0.500 |
| 211 | shapecode_0_y=0.660 |
| 212 | shapecode_0_rad=0.34546 |
| 213 | shapecode_0_ang=0.00000 |
| 214 | shapecode_0_tex_ang=1.50796 |
| 215 | shapecode_0_tex_zoom=0.61299 |
| 216 | shapecode_0_r=0.800 |
| 217 | shapecode_0_g=0.800 |
| 218 | shapecode_0_b=1.000 |
| 219 | shapecode_0_a=0.080 |
| 220 | shapecode_0_r2=0.000 |
| 221 | shapecode_0_g2=0.000 |
| 222 | shapecode_0_b2=0.000 |
| 223 | shapecode_0_a2=0.000 |
| 224 | shapecode_0_border_r=1.000 |
| 225 | shapecode_0_border_g=1.000 |
| 226 | shapecode_0_border_b=0.000 |
| 227 | shapecode_0_border_a=0.000 |
| 228 | shapecode_1_enabled=1 |
| 229 | shapecode_1_sides=16 |
| 230 | shapecode_1_additive=0 |
| 231 | shapecode_1_thickOutline=1 |
| 232 | shapecode_1_textured=0 |
| 233 | shapecode_1_num_inst=32 |
| 234 | shapecode_1_x=0.500 |
| 235 | shapecode_1_y=0.670 |
| 236 | shapecode_1_rad=0.02007 |
| 237 | shapecode_1_ang=0.00000 |
| 238 | shapecode_1_tex_ang=0.00000 |
| 239 | shapecode_1_tex_zoom=1.25486 |
| 240 | shapecode_1_r=0.700 |
| 241 | shapecode_1_g=0.000 |
| 242 | shapecode_1_b=0.000 |
| 243 | shapecode_1_a=0.500 |
| 244 | shapecode_1_r2=0.000 |
| 245 | shapecode_1_g2=0.000 |
| 246 | shapecode_1_b2=0.000 |
| 247 | shapecode_1_a2=0.000 |
| 248 | shapecode_1_border_r=0.300 |
| 249 | shapecode_1_border_g=0.700 |
| 250 | shapecode_1_border_b=0.800 |
| 251 | shapecode_1_border_a=0.000 |
| 252 | shape_1_per_frame1=//blood drooling |
| 253 | shape_1_per_frame2= |
| 254 | shape_1_per_frame3=// "random" values per instance |
| 255 | shape_1_per_frame4=phase = sin(instance*3); |
| 256 | shape_1_per_frame5=speed = 2+cos(instance*12); |
| 257 | shape_1_per_frame6=x0 = .5 + .06*sin(instance*17); |
| 258 | shape_1_per_frame7= |
| 259 | shape_1_per_frame8=trel = (time-phase)*speed/16; |
| 260 | shape_1_per_frame9=tinst = trel - int(trel); |
| 261 | shape_1_per_frame10= |
| 262 | shape_1_per_frame11=x = x0; |
| 263 | shape_1_per_frame12=y = .5-q3 - tinst; |
| 264 | shape_1_per_frame13= |
| 265 | shape_1_per_frame14=a = min(sqrt(tinst)+.1,1); |
| 266 | shape_1_per_frame15=a = a*q17; |
| 267 | shapecode_2_enabled=0 |
| 268 | shapecode_2_sides=3 |
| 269 | shapecode_2_additive=0 |
| 270 | shapecode_2_thickOutline=0 |
| 271 | shapecode_2_textured=0 |
| 272 | shapecode_2_num_inst=6 |
| 273 | shapecode_2_x=0.503 |
| 274 | shapecode_2_y=0.370 |
| 275 | shapecode_2_rad=0.06391 |
| 276 | shapecode_2_ang=0.94248 |
| 277 | shapecode_2_tex_ang=0.00000 |
| 278 | shapecode_2_tex_zoom=9.18052 |
| 279 | shapecode_2_r=1.000 |
| 280 | shapecode_2_g=1.000 |
| 281 | shapecode_2_b=1.000 |
| 282 | shapecode_2_a=1.000 |
| 283 | shapecode_2_r2=1.000 |
| 284 | shapecode_2_g2=1.000 |
| 285 | shapecode_2_b2=1.000 |
| 286 | shapecode_2_a2=0.000 |
| 287 | shapecode_2_border_r=0.000 |
| 288 | shapecode_2_border_g=0.000 |
| 289 | shapecode_2_border_b=0.000 |
| 290 | shapecode_2_border_a=0.000 |
| 291 | shape_2_per_frame1=k1 = instance/num_inst-.5; |
| 292 | shape_2_per_frame2= |
| 293 | shape_2_per_frame3=x = .5 + k1/8; |
| 294 | shape_2_per_frame4= |
| 295 | shape_2_per_frame5=y = .4 + (k1)*0; |
| 296 | shape_2_per_frame6=ang = 0; |
| 297 | shape_2_per_frame7=a = .1; a2 = .0; |
| 298 | shapecode_3_enabled=1 |
| 299 | shapecode_3_sides=9 |
| 300 | shapecode_3_additive=0 |
| 301 | shapecode_3_thickOutline=0 |
| 302 | shapecode_3_textured=0 |
| 303 | shapecode_3_num_inst=2 |
| 304 | shapecode_3_x=0.520 |
| 305 | shapecode_3_y=0.510 |
| 306 | shapecode_3_rad=0.01800 |
| 307 | shapecode_3_ang=0.00000 |
| 308 | shapecode_3_tex_ang=0.00000 |
| 309 | shapecode_3_tex_zoom=1.91509 |
| 310 | shapecode_3_r=0.000 |
| 311 | shapecode_3_g=0.000 |
| 312 | shapecode_3_b=0.000 |
| 313 | shapecode_3_a=1.000 |
| 314 | shapecode_3_r2=0.500 |
| 315 | shapecode_3_g2=0.000 |
| 316 | shapecode_3_b2=0.000 |
| 317 | shapecode_3_a2=0.000 |
| 318 | shapecode_3_border_r=0.200 |
| 319 | shapecode_3_border_g=0.700 |
| 320 | shapecode_3_border_b=0.500 |
| 321 | shapecode_3_border_a=0.000 |
| 322 | shape_3_per_frame1=x = .5 + (instance-.5)*.04; |
| 323 | per_frame_init_1=crumple = 0; |
| 324 | per_frame_init_2=mwidth = .5; |
| 325 | per_frame_init_3=mshape = 0; |
| 326 | per_frame_init_4=dist = 4; |
| 327 | per_frame_init_5=dist_ = 4; |
| 328 | per_frame_1=dec_med = pow (0.8, 30/fps); |
| 329 | per_frame_2=dec_b = pow (0.9, 30/fps); |
| 330 | per_frame_3=dec_slow = pow (0.9, 30/fps); |
| 331 | per_frame_4=beat = max (max (bass, mid), treb); |
| 332 | per_frame_5=avg = avg*dec_slow + beat*(1-dec_slow); |
| 333 | per_frame_6=is_beat = above(beat, avg+peak) * above (time, t0+.1); |
| 334 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 335 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 336 | per_frame_9=index = (index + is_beat) %32; |
| 337 | per_frame_10=index2 = (index2 + is_beat*bnot(index))%4; |
| 338 | per_frame_11= |
| 339 | per_frame_12=q20 = avg; |
| 340 | per_frame_13=q21 = beat; |
| 341 | per_frame_14=q22 = peak; |
| 342 | per_frame_15= |
| 343 | per_frame_16=q24 = is_beat; |
| 344 | per_frame_17=q26 = bass_att + mid_att + treb_att; |
| 345 | per_frame_18=q27 = index +1; |
| 346 | per_frame_19=q28 = index2; |
| 347 | per_frame_20= |
| 348 | per_frame_21=light = light * dec_med + (1-dec_med)*q22; |
| 349 | per_frame_22=light = min(light,3); |
| 350 | per_frame_23=q15 = light/3; |
| 351 | per_frame_24= |
| 352 | per_frame_25=ph1 = below(q27,8); |
| 353 | per_frame_26=ph2 = above(q27,8)*below(q27,16); |
| 354 | per_frame_27=ph2a = above(q27,29); // open mouth |
| 355 | per_frame_28=ph3 = above(q27,30); |
| 356 | per_frame_29= |
| 357 | per_frame_30=blend = above(q27,30)+below(q27,2); |
| 358 | per_frame_31=blend_ = dec_b*blend_ + (1-dec_b)*blend; |
| 359 | per_frame_32=q19 = blend_; |
| 360 | per_frame_33=q18 = 1-blend_; |
| 361 | per_frame_34=dist = if(ph1,3,dist); |
| 362 | per_frame_35=dist = if(ph2,max(dist -1/fps,1.8),dist); |
| 363 | per_frame_36=dist = if(ph3,max(dist - 8/fps,-1),dist); |
| 364 | per_frame_37=dist_ = dist_ * dec_med + dist*(1-dec_med); |
| 365 | per_frame_38= |
| 366 | per_frame_39=q11 = dist_;//q11 = 2; |
| 367 | per_frame_40=open = if(ph2a,open*dec_slow,4); |
| 368 | per_frame_41=q16 = 4-open+q27/16+q15/2; |
| 369 | per_frame_42=q17 = above(q27,16); //drool |
| 370 | per_frame_43= |
| 371 | per_frame_44=trel1 = trel1 + 1/fps * (1 + q15*2*((q27%2)-.5)); |
| 372 | per_frame_45=trel2 = trel2 + 1/fps * (1 + q15*2*((q27%4)-1.5)); |
| 373 | per_frame_46=px_ = sin(trel1)/5; |
| 374 | per_frame_47=py_ = cos(trel2)/5-.1; |
| 375 | per_frame_48= |
| 376 | per_frame_49=px__ = dec_slow*px__ + px_ * (1-dec_slow); |
| 377 | per_frame_50=py__ = dec_slow*py__ + py_ * (1-dec_slow); |
| 378 | per_frame_51= |
| 379 | per_frame_52=q5 = px_+.1*sin(time); |
| 380 | per_frame_53=q6 = py_+.1*cos(2*time); //light pos |
| 381 | per_frame_54= |
| 382 | per_frame_55=q9 = px__*sqrt(dist_)/2; //head pos |
| 383 | per_frame_56=q10 = py__*sqrt(dist_)/2; |
| 384 | per_frame_57= |
| 385 | per_frame_58=trig = equal(q27,31)*q24; |
| 386 | per_frame_59=crumple = if(trig,rand(20)-5,crumple); |
| 387 | per_frame_60=mwidth = if(trig,.2+rand(20)/20,mwidth); |
| 388 | per_frame_61=mshape = if(trig, rand(20)/40,mshape); |
| 389 | per_frame_62= |
| 390 | per_frame_63=q1 = crumple; |
| 391 | per_frame_64=q2 = mwidth; |
| 392 | per_frame_65=q3 = .1; //y-pos mouth |
| 393 | per_frame_66=q4 = mshape; |
| 394 | per_frame_67= |
| 395 | per_frame_68=monitor =q4; |
| 396 | per_frame_69= |
| 397 | warp_1=`sampler sampler_sampler_pw_noise_lq; |
| 398 | warp_2=`float hole; |
| 399 | warp_3=`float2 dz,uv1,uv2,uv3,uv4,uv6, mod; |
| 400 | warp_4=`float3 blur, blur2, noise2, noise3; |
| 401 | warp_5=`static float2 eyepos = float2(.1,-.1); |
| 402 | warp_6=`static float eyerad = .02; |
| 403 | warp_7=`static float mouth_y = q3; |
| 404 | warp_8=`static float direct = 1; |
| 405 | warp_9=`static float crumple = q1; |
| 406 | warp_10=`static float mwidth = q2; |
| 407 | warp_11=`static float mopen = q16; |
| 408 | warp_12=`static float mshape= q4; |
| 409 | warp_13=`static float dist = q11; |
| 410 | warp_14=`shader_body { |
| 411 | warp_15=` |
| 412 | warp_16=`float3 blur = lum(GetBlur1(frac(uv)))*crumple; |
| 413 | warp_17=`float2 hor = float2 (texsize.z,0)*8*blur; |
| 414 | warp_18=`float2 ver = float2 (0,texsize.w)*8*blur; |
| 415 | warp_19=`float dx = lum(tex2D(sampler_main,uv+hor) - tex2D(sampler_main,uv-hor)); |
| 416 | warp_20=`float dy = lum(tex2D(sampler_main,uv+ver) - tex2D(sampler_main,uv-ver)); |
| 417 | warp_21=`float2 dz = float2 (dx + (uv.x-.5)*.0,dy+.0); |
| 418 | warp_22=` |
| 419 | warp_23=`uv1 = float2 (abs(uv.x-.5),uv.y-.5); |
| 420 | warp_24=`//uv1 = float2(8*uv1.x*uv1.x,uv1.y*uv1.y*8); |
| 421 | warp_25=` |
| 422 | warp_26=`float teeth = sin((uv1.x)*142+1.5*sign(uv1.y-mouth_y))-mopen*.008/abs(uv1.y-mouth_y); |
| 423 | warp_27=` |
| 424 | warp_28=`float eyes = saturate(eyerad/length(uv1-eyepos)); |
| 425 | warp_29=`eyes = pow(eyes,4); |
| 426 | warp_30=`float mouth = saturate(.05/sqrt(uv1.x*uv1.x*mwidth + (.05/(.01+mshape*uv1.x))*(1+q15)/mopen*pow(uv1.y-mouth_y,2))); |
| 427 | warp_31=`mouth = pow(mouth,3); |
| 428 | warp_32=`mod = eyes + mouth*mopen; |
| 429 | warp_33=`hole = pow(max(eyes,mouth),1); |
| 430 | warp_34=` |
| 431 | warp_35=`float3 eyeball = saturate(cos(1.4/eyerad*length(uv1-eyepos)))/3*(2-direct)*roam_sin*2; |
| 432 | warp_36=`eyeball = eyeball - (length(uv1-eyepos-.02*float2(q9*0,q10-eyepos.y)) < .01*q15); |
| 433 | warp_37=` |
| 434 | warp_38=`noise3 = lum(tex2D(sampler_noise_lq,uv1))+.5; |
| 435 | warp_39=`uv1 += mod/4; |
| 436 | warp_40=`teeth *= (mouth); |
| 437 | warp_41=` |
| 438 | warp_42=`float2 ang2= tex2D (sampler_noise_hq,uv1/4+time/180).xy; |
| 439 | warp_43=`//uv6 = mul(uv1,float2x2(ang2.y,-ang2.x,ang2.x,ang2.y)); |
| 440 | warp_44=`uv6 = uv1 + .5*(uv1*4*ang2); |
| 441 | warp_45=`float mus = cos(uv6.y*18)+(sin(uv6.x*18)); |
| 442 | warp_46=`noise2 = abs(mus)/6*(1+abs(crumple/16))+.2; |
| 443 | warp_47=`noise2 *= float3 (1,.9,.8); |
| 444 | warp_48=`noise2 = lerp(noise2,teeth,mouth); |
| 445 | warp_49=`noise2 = lerp(noise2,eyeball,eyes); |
| 446 | warp_50=`blur2 = GetBlur2(frac(noise3)); |
| 447 | warp_51=` |
| 448 | warp_52=`float3 crisp = GetPixel(frac(uv+dz*.003)); |
| 449 | warp_53=`//crisp = max(crisp, .8*float3(1,1,1)*GetPixel(uv*1+.3)*saturate(1-2*lum(GetPixel(uv+.31)))); |
| 450 | warp_54=`crisp += -0.0*blur2 - length(dz)*.1; |
| 451 | warp_55=` |
| 452 | warp_56=` |
| 453 | warp_57=`ret = crisp * (.99-hole/2*direct) - .01 + noise2*(.045+hole*direct) ; |
| 454 | warp_58=`//ret = hole; |
| 455 | warp_59=`//ret = 1-eyes; |
| 456 | warp_60=`//ret = tex2D (sampler_shub1,uv1); |
| 457 | warp_61=`} |
| 458 | comp_1=`float dx, dy, k1; |
| 459 | comp_2=`float2 uv1, uv2, uv3, uv4, tmp; |
| 460 | comp_3=`float3 noise, ret1, ret2, beast, bcopy; |
| 461 | comp_4=` |
| 462 | comp_5=`static float2 hor = float2 (texsize.z,0)*4; |
| 463 | comp_6=`static float2 ver = float2 (0,texsize.w)*4; |
| 464 | comp_7=`static float2 lightpos = float2(q5,q6); |
| 465 | comp_8=`static float vis = q18; |
| 466 | comp_9=`static float dist = q11; |
| 467 | comp_10=`static float mouth_y = q3; |
| 468 | comp_11=` |
| 469 | comp_12=`float2 rs (float2 uv_in) { |
| 470 | comp_13=`uv_in.x += q9; |
| 471 | comp_14=`return uv_in*dist*(.4+clamp(abs(uv_in.x),-1/dist,1/dist)+4*q9*uv_in.x)-.5+float2(0,q10+mouth_y);} |
| 472 | comp_15=` |
| 473 | comp_16=`float2 rs2 (float2 uv_in) { |
| 474 | comp_17=`uv_in.x += q9*.96 ; |
| 475 | comp_18=`tmp = uv_in*1.1*dist*(.4+clamp(abs(uv_in.x),-1/dist,1/dist)+4*q9*uv_in.x)-.5+float2(0,q10*.96+mouth_y); |
| 476 | comp_19=`return tmp;} |
| 477 | comp_20=` |
| 478 | comp_21=` |
| 479 | comp_22=`float2 dz (float2 uv_in) { |
| 480 | comp_23=` dx = lum(tex2D(sampler_main,uv_in+hor) - tex2D(sampler_main,uv_in-hor)); |
| 481 | comp_24=` dy = lum(tex2D(sampler_main,uv_in+ver) - tex2D(sampler_main,uv_in-ver)); |
| 482 | comp_25=` return float2 (dx+0*(lightpos.x),dy);} |
| 483 | comp_26=` |
| 484 | comp_27=` |
| 485 | comp_28=` |
| 486 | comp_29=`float2 uv_polar(float2 domain, float2 center){ |
| 487 | comp_30=` float2 c = domain - center; |
| 488 | comp_31=` float rad_hq = length(c); |
| 489 | comp_32=` float ang_hq = atan2(c.x,c.y); |
| 490 | comp_33=` return float2(ang_hq, rad_hq); |
| 491 | comp_34=`} |
| 492 | comp_35=` |
| 493 | comp_36=`float2 uv_lens_half_sphere(float2 domain, float2 position, float radius, float refractivity){ |
| 494 | comp_37=` float2 polar = uv_polar(domain, position); |
| 495 | comp_38=` float cone = saturate(1-polar.y/radius); |
| 496 | comp_39=` float halfsphere = sqrt(1-pow(cone-1,2)); |
| 497 | comp_40=` float w = atan2(1-cone,halfsphere); |
| 498 | comp_41=` float refrac_w = w-asin(sin(w)/refractivity); |
| 499 | comp_42=` float refrac_d = 1-cone - halfsphere*tan(refrac_w); |
| 500 | comp_43=` float2 refrac_uv =position+float2(sin(polar.x),cos(polar.x))*refrac_d*radius; |
| 501 | comp_44=` bool mask = cone>0; |
| 502 | comp_45=` return !mask*domain + mask*refrac_uv; |
| 503 | comp_46=`} |
| 504 | comp_47=` |
| 505 | comp_48=`shader_body |
| 506 | comp_49=`{ |
| 507 | comp_50=`uv = uv_lens_half_sphere(uv, float2(0.5,0.5), 0.25, 1.7); |
| 508 | comp_51=`uv = uv_lens_half_sphere(uv, 0.5, 1, 0.4+bass_att*0.0); |
| 509 | comp_52=`float t = time*0.04; // set velocity here |
| 510 | comp_53=`float2 c = (uv-0.5)*aspect.wz; |
| 511 | comp_54=`float1 ang_hq = atan2(c.x,c.y); |
| 512 | comp_55=`float2 spiral = float2(-ang_hq*M_INV_PI_2*2-t,aspect.w*log(length(c))*(.5+treb_att*0.015)+ang_hq*M_INV_PI_2*2-t*8); |
| 513 | comp_56=`float2 mirror = 0.5 + (0.5 - abs( frac( spiral * 0.5 ) * 2.0 - 1.0 )); // mirror |
| 514 | comp_57=`//uv = mirror; |
| 515 | comp_58=`float2 uv4 = uv-.5+float2(q9,q10); |
| 516 | comp_59=` |
| 517 | comp_60=` |
| 518 | comp_61=`float water = tex2D (sampler_noise_mq,uv/2+time/5); |
| 519 | comp_62=`uv1 = (uv-.5)*aspect.xy + water *.0; |
| 520 | comp_63=`uv3 = rs(uv1); |
| 521 | comp_64=`float rad1 = saturate(.2/dist/length(uv1.x+q9)); |
| 522 | comp_65=`float rad2 = saturate(.05/dist/length(uv1+float2(q9,q10))); |
| 523 | comp_66=`beast = tex2D (sampler_main, uv3)*rad1; |
| 524 | comp_67=`bcopy = tex2D (sampler_main, rs2(uv1))*saturate(1-8*lum(beast))*rad2/2;; |
| 525 | comp_68=` |
| 526 | comp_69=` |
| 527 | comp_70=`float light = 2*saturate(.05/length(uv1+lightpos+2*dz(uv3))); |
| 528 | comp_71=`float flatlight = saturate ((1+q15)*.5/dist/length(uv1+lightpos)); |
| 529 | comp_72=` |
| 530 | comp_73=` |
| 531 | comp_74=`float2 uv5 = normalize(uv1+float2(.1,.1)+lightpos)*1+lightpos; |
| 532 | comp_75=`float3 ray = saturate(GetPixel(rs(uv5))); |
| 533 | comp_76=` |
| 534 | comp_77=`//flatlight = 1; |
| 535 | comp_78=` |
| 536 | comp_79=` |
| 537 | comp_80=`beast *= pow(flatlight,2)*.7; |
| 538 | comp_81=`beast += lum(beast)*light*light *pow(flatlight,2) ; |
| 539 | comp_82=`//beast = lerp(beast,.2*float3(.5,.5,1)*flatlight,4*abs(uv1.x)); |
| 540 | comp_83=`//beast = (q22/4+2*(.5-q22/4)*beast) *flatlight; |
| 541 | comp_84=`ret = (beast+bcopy*flatlight); |
| 542 | comp_85=`ret = lerp(saturate(flatlight*float3(q22,0,0)),ret, vis); |
| 543 | comp_86=` |
| 544 | comp_87=`//ret = tex2D (sampler_main,((uv-.5)*aspect.xy+.5)); |
| 545 | comp_88=`//ret = rad1; |
| 546 | comp_89=`} |